package com.itcast.manager3.A_entry;

import com.itcast.manager2.E_domain.Student;
import com.itcast.manager3.B_controller.ShareholderContorller;
import com.itcast.manager3.B_controller.StudentContorller;
import com.itcast.manager3.B_controller.TecherContorller;

import java.util.Scanner;

public class manageEntry {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
       while (true) {
           System.out.println("---欢迎进入黑马管理系统---");
           System.out.println("1: 学生管理系统");
           System.out.println("2：老师管理系统");
           System.out.println("3：股东管理系统");
           System.out.println("4：退出");
           int choose = sc.nextInt();
           switch (choose) {
               case 1:
                   StudentContorller stu = new StudentContorller();
                   stu.start();
                   break;
               case 2:
                   TecherContorller tc = new TecherContorller();
                   tc.start();
                   break;
               case 3:
                   ShareholderContorller shc = new ShareholderContorller();
                   shc.start();
                   break;
               case 4:
                   System.out.println("感谢您的使用");
                   return;
               default:
                   System.out.println("输入有误，请重新输入");
                   break;
           }
       }
    }
}
